import axios from './config';
const preUrl = ''

const home = {
  getArticleList: {
    r: params => {
      return axios.get(`${preUrl}/article/list`, { params })
    }
  }
}

const hero = {
  getHeroList: {
    r: (params) => {
      return axios.get(`${preUrl}/hero/list`, { params })
    }
  },
  getSkillList: {
    r: (params) => {
      return axios.get(`${preUrl}/skill/list`, { params })
    }
  },
}

const ins = {
  getInsList: {
    r: (params) => {
      return axios.get(`${preUrl}/ins/list`, { params })
    }
  },
  getInsTypeList: {
    r: (params) => {
      return axios.get(`${preUrl}/ins/list`, { params })
    }
  },
  getInsInfo: {
    r: (params) => {
      return axios.get(`${preUrl}/ins/info/${params.id}`)
    }
  },
}

const equip = {
  getEquipList: {
    r: (params) => {
      return axios.get(`${preUrl}/equipment/list`, { params })
    }
  }
}

export  {
  home,
  hero,
  ins,
  equip
}
